package proxy2;

public class JDKProxyTest {

    public static void main(String[] args) {
        House student = (House)new JDKProxy().getTarget(new PoorMan());

        System.out.println("before");

        student.buyHouse();

        System.out.println("after");

    }
}
